<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>Cordova - Developer Documentation</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

    <link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
    <link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
    <link href="../css/prism.css" rel="stylesheet" media="all"/>
    <link href="../css/template.css" rel="stylesheet" media="all"/>
    
    <!--[if lt IE 9]>
    <script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
    <![endif]-->
    <script src="https://code.jquery.com/jquery-1.11.0.min.js" type="text/javascript"></script>
    <script src="https://code.jquery.com/ui/1.10.4/jquery-ui.min.js" type="text/javascript"></script>
    <script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
    <script src="../js/jquery.smooth-scroll.js"></script>
    <script src="../js/prism.min.js"></script>
    <!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit-->
    <script type="text/javascript">
    function loadExternalCodeSnippets() {
        Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
            var src = pre.getAttribute('data-src');
            var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
            var language = 'php';

            var code = document.createElement('code');
            code.className = 'language-' + language;

            pre.textContent = '';

            code.textContent = 'Loading…';

            pre.appendChild(code);

            var xhr = new XMLHttpRequest();

            xhr.open('GET', src, true);

            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4) {

                    if (xhr.status < 400 && xhr.responseText) {
                        code.textContent = xhr.responseText;

                        Prism.highlightElement(code);
                    }
                    else if (xhr.status >= 400) {
                        code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
                    }
                    else {
                        code.textContent = '✖ Error: File does not exist or is empty';
                    }
                }
            };

            xhr.send(null);
        });
    }

    $(document).ready(function(){
        loadExternalCodeSnippets();
    });
    $('#source-view').on('shown', function () {
        loadExternalCodeSnippets();
    })
</script>

    <link rel="shortcut icon" href="../images/favicon.ico"/>
    <link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/>
    <link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/>
    <link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/>
</head>
<body>

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <i class="icon-ellipsis-vertical"></i>
            </a>
            <a class="brand" href="../index.html">Cordova - Developer Documentation</a>

            <div class="nav-collapse">
                <ul class="nav pull-right">
                                        <li class="dropdown" id="charts-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            Charts <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="../graphs/class.html">
                                    <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown" id="reports-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            Reports <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="../reports/errors.html">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">121</span>
                                </a>
                            </li>
                            <li>
                                <a href="../reports/markers.html">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <i class="icon-list-alt"></i>&#160;Markers <span class="label label-info pull-right">1</span>
                                </a>
                            </li>
                            <li>
                                <a href="../reports/deprecated.html">
                                                                                                            <i class="icon-list-alt"></i>&#160;Deprecated <span class="label label-info pull-right">0</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!--<div class="go_to_top">-->
    <!--<a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>-->
    <!--</div>-->
</div>

<div id="___" class="container-fluid">
        <section class="row-fluid">
        <div class="span2 sidebar">
                                <div class="accordion" style="margin-bottom: 0">
        <div class="accordion-group">
            <div class="accordion-heading">
                                    <a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-316025377"></a>
                                <a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
            </div>
            <div id="namespace-316025377" class="accordion-body collapse in">
                <div class="accordion-inner">

                    
                    <ul>
                                                                                                    <li class="class"><a href="../classes/API.html">API</a></li>
                                                    <li class="class"><a href="../classes/API_model.html">API_model</a></li>
                                                    <li class="class"><a href="../classes/Auth.html">Auth</a></li>
                                                    <li class="class"><a href="../classes/Auth_model.html">Auth_model</a></li>
                                                    <li class="class"><a href="../classes/Email.html">Email</a></li>
                                                    <li class="class"><a href="../classes/Genes.html">Genes</a></li>
                                                    <li class="class"><a href="../classes/Genes_model.html">Genes_model</a></li>
                                                    <li class="class"><a href="../classes/Migration_Init.html">Migration_Init</a></li>
                                                    <li class="class"><a href="../classes/MY_Controller.html">MY_Controller</a></li>
                                                    <li class="class"><a href="../classes/MY_Form_validation.html">MY_Form_validation</a></li>
                                                    <li class="class"><a href="../classes/MY_Model.html">MY_Model</a></li>
                                                    <li class="class"><a href="../classes/Pages.html">Pages</a></li>
                                                    <li class="class"><a href="../classes/Pages_model.html">Pages_model</a></li>
                                                    <li class="class"><a href="../classes/Uiowa_auth_model.html">Uiowa_auth_model</a></li>
                                                    <li class="class"><a href="../classes/Variations.html">Variations</a></li>
                                                    <li class="class"><a href="../classes/Variations_model.html">Variations_model</a></li>
                                            </ul>
                </div>
            </div>
        </div>
    </div>

        </div>
    </section>
    <section class="row-fluid">
        <div class="span10 offset2">
            <div class="row-fluid">
                <div class="span8 content class">
                    <nav>
                                                <a href="../namespaces/default.html">\</a> <i class="icon-level-up"></i>
                                            </nav>
                    <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a>

                    <h1><small>\</small>API_model</h1>
                    <p><em></em></p>
                    

                    <section id="summary">
                        <h2>Summary</h2>
                        <section class="row-fluid heading">
                            <section class="span4">
                                <a href="#methods">Methods</a>
                            </section>
                            <section class="span4">
                                <a href="#properties">Properties</a>
                            </section>
                            <section class="span4">
                                <a href="#constants">Constants</a>
                            </section>
                        </section>
                        <section class="row-fluid public">
                            <section class="span4">
                                                                    <a href="../classes/MY_Model.html#method_get_db_version_num" class="">get_db_version_num()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_get_all_db_version_info" class="">get_all_db_version_info()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_set_vd_live_table" class="">set_vd_live_table()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_set_vd_queue_table" class="">set_vd_queue_table()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_set_reviews_table" class="">set_reviews_table()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_set_variant_count_table" class="">set_variant_count_table()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_get_last_update_date" class="">get_last_update_date()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_get_new_version_name" class="">get_new_version_name()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_get_ids_within_range" class="">get_ids_within_range()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_get_all_current_values" class="">get_all_current_values()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_copy_table" class="">copy_table()</a><br />
                                                                    <a href="../classes/MY_Model.html#method_empty_table" class="">empty_table()</a><br />
                                                                    <a href="../classes/API_model.html#method___construct" class="">__construct()</a><br />
                                                                    <a href="../classes/API_model.html#method_api_bootstrap" class="">api_bootstrap()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_validate_terms" class="">_api_validate_terms()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_validate_terms_gene" class="">_api_validate_terms_gene()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_validate_terms_variant" class="">_api_validate_terms_variant()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_search" class="">_api_search()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_result" class="">_api_result()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_result_text" class="">_api_result_text()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_result_xml" class="">_api_result_xml()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_result_json" class="">_api_result_json()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_result_vcf" class="">_api_result_vcf()</a><br />
                                                                    <a href="../classes/API_model.html#method__api_iso_date" class="">_api_iso_date()</a><br />
                                                            </section>
                            <section class="span4">
                                                                    <a href="../classes/MY_Model.html#property_version" class="">$version</a><br />
                                                                    <a href="../classes/API_model.html#property_strings" class="">$strings</a><br />
                                                                    <a href="../classes/API_model.html#property_tables" class="">$tables</a><br />
                                                                    <a href="../classes/API_model.html#property_api_vars" class="">$api_vars</a><br />
                                                            </section>
                            <section class="span4">
                                                                    <em>No constants found</em>
                                                            </section>
                        </section>
                        <section class="row-fluid protected">
                            <section class="span4">
                                                                    <em>No protected methods found</em>
                                                            </section>
                            <section class="span4">
                                                                    <em>No protected properties found</em>
                                                            </section>
                            <section class="span4">
                                <em>N/A</em>
                            </section>
                        </section>
                        <section class="row-fluid private">
                            <section class="span4">
                                                                    <em>No private methods found</em>
                                                            </section>
                            <section class="span4">
                                                                    <em>No private properties found</em>
                                                            </section>
                            <section class="span4">
                                <em>N/A</em>
                            </section>
                        </section>
                    </section>
                </div>
                <aside class="span4 detailsbar">
                                        
                    
                    <dl>
                        <dt>File</dt>
                            <dd><a href="../files/models.api_model.php.html"><div class="path-wrapper">models/api_model.php</div></a></dd>
                                                <dt>Package</dt>
                            <dd><div class="namespace-wrapper"></div></dd>
                                                <dt>Class hierarchy</dt>
                            <dd class="hierarchy">
                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                        <div class="namespace-wrapper">\CI_Model</div>
                                                                    
                                        <div class="namespace-wrapper"><a href="../classes/MY_Model.html">\MY_Model</a></div>
                                                                                                    <div class="namespace-wrapper">\API_model</div>
                            </dd>

                        
                        
                        
                        
                                                                        </dl>
                    <h2>Tags</h2>
                    <table class="table table-condensed">
                                            <tr>
                            <th>
                                todo
                            </th>
                            <td>
                                                            </td>
                        </tr>
                                        </table>
                </aside>
            </div>

                        
                                    <a id="properties" name="properties"></a>
            <div class="row-fluid">
                <div class="span8 content class">
                    <h2>Properties</h2>
                </div>
                <aside class="span4 detailsbar"></aside>
            </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="property_version" name="property_version" class="anchor"></a>
            <article class="property">
                <h3 class="public ">$version</h3>
                <pre class="signature">$version</pre>
                <p><em></em></p>
                

                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                        <dl>
                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="property_strings" name="property_strings" class="anchor"></a>
            <article class="property">
                <h3 class="public ">$strings</h3>
                <pre class="signature">$strings : array</pre>
                <p><em>Array of strings for views, filenames, etc.</em></p>
                

                                <h4>Type</h4>
                array
                                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                        <dl>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="property_tables" name="property_tables" class="anchor"></a>
            <article class="property">
                <h3 class="public ">$tables</h3>
                <pre class="signature">$tables : array</pre>
                <p><em>Array of tables used.</em></p>
                

                                <h4>Type</h4>
                array
                                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                        <dl>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="property_api_vars" name="property_api_vars" class="anchor"></a>
            <article class="property">
                <h3 class="public ">$api_vars</h3>
                <pre class="signature">$api_vars : array</pre>
                <p><em>Array of variables to be used with API queries.</em></p>
                

                                <h4>Type</h4>
                array
                                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                        <dl>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                                            
                                    <a id="methods" name="methods"></a>
            <div class="row-fluid">
                <div class="span8 content class"><h2>Methods</h2></div>
                <aside class="span4 detailsbar"></aside>
            </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_get_db_version_num" name="method_get_db_version_num" class="anchor"></a>
            <article class="method">
                <h3 class="public ">get_db_version_num()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">get_db_version_num(boolean <span class="argument">$use_point</span>) : int</pre>
                <p><em>Get DB Version Num</em></p>
                <p>Returns the version number for the latest database if
$config['vd_version'] is set to 0. Otherwise the specified
version will be used.</p>
<p>For point releases, the name of a table will be like 'dvd_2_1',
not 'dvd_2.1'. Therefore, this function returns the underscored
format (e.g. 'dvd_2_1') by default. To return the point format
(e.g. 'dvd_2.1'), specify the first parameter to be TRUE.</p>

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>boolean</td>
                                <td>$use_point </td>
                                <td><p>Return a point (.) format instead of a underscore (_) format</p></td>
                            </tr>
                                            </table>
                
                
                                    <h4>Returns</h4>
                    int
                                            &mdash; <p>Correct version of the variation database</p>
                                                </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_get_all_db_version_info" name="method_get_all_db_version_info" class="anchor"></a>
            <article class="method">
                <h3 class="public ">get_all_db_version_info()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">get_all_db_version_info() : object</pre>
                <p><em>Get All DB Version Info</em></p>
                <p>Returns the versioning info for the variation database.</p>

                
                
                                    <h4>Returns</h4>
                    object
                                            &mdash; <p>All DB version info</p>
                                                </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_set_vd_live_table" name="method_set_vd_live_table" class="anchor"></a>
            <article class="method">
                <h3 class="public ">set_vd_live_table()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">set_vd_live_table() : void</pre>
                <p><em>Set VD Live Table</em></p>
                <p>Sets the proper name of the variations table by determining the
latest version of the database.</p>
<p>Read more about it in application/config/variation_database.php.</p>

                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_set_vd_queue_table" name="method_set_vd_queue_table" class="anchor"></a>
            <article class="method">
                <h3 class="public ">set_vd_queue_table()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">set_vd_queue_table() : void</pre>
                <p><em>Set VD Queue Table</em></p>
                <p>Sets the proper name of the variations queue table by determining the
latest version of the database.</p>
<p>Read more about it in application/config/variation_database.php.</p>

                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_set_reviews_table" name="method_set_reviews_table" class="anchor"></a>
            <article class="method">
                <h3 class="public ">set_reviews_table()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">set_reviews_table() : void</pre>
                <p><em>Set Reviews Table</em></p>
                <p>Sets the proper name for the variant reviews table by determining the
latest version of the database.</p>
<p>Read more about it in application/config/variation_database.php.</p>

                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_set_variant_count_table" name="method_set_variant_count_table" class="anchor"></a>
            <article class="method">
                <h3 class="public ">set_variant_count_table()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">set_variant_count_table() : void</pre>
                <p><em>Set Variant Count Table</em></p>
                <p>Sets the proper name for the variant count table by determining the
latest version of the database.</p>
<p>Read more about it in application/config/variation_database.php.</p>

                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_get_last_update_date" name="method_get_last_update_date" class="anchor"></a>
            <article class="method">
                <h3 class="public ">get_last_update_date()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">get_last_update_date() : void</pre>
                <p><em>Get Last Update Date</em></p>
                <p>Returns the correct date for when the database was last updated.</p>

                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_get_new_version_name" name="method_get_new_version_name" class="anchor"></a>
            <article class="method">
                <h3 class="public ">get_new_version_name()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">get_new_version_name(string <span class="argument">$cur_name</span>, int <span class="argument">$latest_version</span>) : string</pre>
                <p><em>Get New Version Name</em></p>
                <p>Returns the name of the next version of a table based on
the current name.</p>
<p>For example:
   if current name = 'dvd_1'
   then next name  = 'dvd_2'</p>
<p>The latest version number is computed automatically. However,
you can specify your own latest version using the second
parameter.</p>

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$cur_name </td>
                                <td><p>Current name of table</p></td>
                            </tr>
                                                    <tr>
                                <td>int</td>
                                <td>$latest_version </td>
                                <td><p>Latest version number</p></td>
                            </tr>
                                            </table>
                
                
                                    <h4>Returns</h4>
                    string
                                            &mdash; <p>Next version of a table name</p>
                                                </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_get_ids_within_range" name="method_get_ids_within_range" class="anchor"></a>
            <article class="method">
                <h3 class="public ">get_ids_within_range()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">get_ids_within_range(string <span class="argument">$table</span>, int <span class="argument">$start_pos</span>, int <span class="argument">$limit</span>) : array</pre>
                <p><em>Get IDs Within Range</em></p>
                <p>Returns an array of IDs within a range of rows
in the database table. This is good for pagination.</p>
<p>For example, if you specify your range as
  get_ids_within_range($this->tables['vd_queue'], 0, 10)
You will get the variant IDs for the first 10 rows of the
queue table (rows 0-9).</p>

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$table </td>
                                <td><p>Database table name</p></td>
                            </tr>
                                                    <tr>
                                <td>int</td>
                                <td>$start_pos </td>
                                <td><p>Starting row</p></td>
                            </tr>
                                                    <tr>
                                <td>int</td>
                                <td>$limit </td>
                                <td><p>Number of rows total (from/including the starting row)</p></td>
                            </tr>
                                            </table>
                
                
                                    <h4>Returns</h4>
                    array
                                            &mdash; <p>Unique IDs</p>
                                                </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_get_all_current_values" name="method_get_all_current_values" class="anchor"></a>
            <article class="method">
                <h3 class="public ">get_all_current_values()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">get_all_current_values(string <span class="argument">$field</span>, string <span class="argument">$table</span>) : array</pre>
                <p><em>Get All Current Values</em></p>
                <p>Get a list of all values currently stored in the
database for a specific field.</p>

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$field </td>
                                <td><p>Field name</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$table </td>
                                <td><p>(optional) Table name</p></td>
                            </tr>
                                            </table>
                
                
                                    <h4>Returns</h4>
                    array
                                            &mdash; <p>Current values in the DB</p>
                                                </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_copy_table" name="method_copy_table" class="anchor"></a>
            <article class="method">
                <h3 class="public ">copy_table()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">copy_table(string <span class="argument">$source</span>, string <span class="argument">$target</span>, boolean <span class="argument">$include_data</span>) : boolean</pre>
                <p><em>Copy Table</em></p>
                <p>Makes an exact copy of a table (structure and data).
To only copy the structure (and not the data), set the
3rd parameter to FALSE.</p>

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$source </td>
                                <td><p>Name of the source table</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$target </td>
                                <td><p>Name of the target (new) table</p></td>
                            </tr>
                                                    <tr>
                                <td>boolean</td>
                                <td>$include_data </td>
                                <td><p>(optional) Copy the data into the new table</p></td>
                            </tr>
                                            </table>
                
                
                                    <h4>Returns</h4>
                    boolean
                                            &mdash; <p>TRUE on success, else FALSE</p>
                                                </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_empty_table" name="method_empty_table" class="anchor"></a>
            <article class="method">
                <h3 class="public ">empty_table()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">empty_table(string <span class="argument">$table</span>) : void</pre>
                <p><em>Empty Table</em></p>
                <p>Remove all data from a table, leaving structure intact.</p>

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$table </td>
                                <td><p>Name of the source table</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                    <dt>Inherited from</dt>
                    <dd><a href="../classes/MY_Model.html"><div class="path-wrapper">\MY_Model</div></a></dd>
                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method___construct" name="method___construct" class="anchor"></a>
            <article class="method">
                <h3 class="public ">__construct()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">__construct()</pre>
                <p><em></em></p>
                

                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method_api_bootstrap" name="method_api_bootstrap" class="anchor"></a>
            <article class="method">
                <h3 class="public ">api_bootstrap()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">api_bootstrap(string <span class="argument">$get_variables</span>) : void</pre>
                <p><em>Sanitize, validate inputs and perform search</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$get_variables </td>
                                <td><p>The $_GET array</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_validate_terms" name="method__api_validate_terms" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_validate_terms()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_validate_terms(string <span class="argument">$type</span>, string <span class="argument">$terms</span>) : void</pre>
                <p><em>Validate search terms by invoking the appropriate method for each search type</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$type </td>
                                <td><p>Type of search (e.g. variant, PubMed ID, etc)</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$terms </td>
                                <td><p>An array of search terms for the type of search</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_validate_terms_gene" name="method__api_validate_terms_gene" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_validate_terms_gene()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_validate_terms_gene(string <span class="argument">$terms</span>) : void</pre>
                <p><em>Helper to search term validation method
Validate genes (e.g. gjb6, GJB6)</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$terms </td>
                                <td><p>An array of variants</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_validate_terms_variant" name="method__api_validate_terms_variant" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_validate_terms_variant()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_validate_terms_variant(string <span class="argument">$terms</span>) : void</pre>
                <p><em>Helper to search term validation method
Validate variants (e.g. chr7:128917)</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$terms </td>
                                <td><p>An array of variants</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_search" name="method__api_search" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_search()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_search(string <span class="argument">$type</span>, string <span class="argument">$terms</span>, string <span class="argument">$version</span>) : void</pre>
                <p><em>Perform the actual search</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$type </td>
                                <td><p>Type of search</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$terms </td>
                                <td><p>An array of (validated) search terms</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$version </td>
                                <td><p>Version of the database to search</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_result" name="method__api_result" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_result()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_result(string <span class="argument">$search_results</span>, string <span class="argument">$format</span>, string <span class="argument">$type</span>, string <span class="argument">$terms</span>, string <span class="argument">$method</span>) : void</pre>
                <p><em>Pass search results to the appropriate helper public functions for display or download</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$search_results </td>
                                <td><p>The array of search results</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$format </td>
                                <td><p>Output format (CSV, tab-delimited, JSON, XML)</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$type </td>
                                <td><p>Type of search</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$terms </td>
                                <td><p>An array of (validated) search terms</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$method </td>
                                <td><p>Download/display method</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_result_text" name="method__api_result_text" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_result_text()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_result_text(string <span class="argument">$search_results</span>, string <span class="argument">$method</span>, string <span class="argument">$type</span>, string <span class="argument">$delimiter</span>) : void</pre>
                <p><em>Helper public function to display search results
Shows CSV or tab-delimited results</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$search_results </td>
                                <td><p>The array of search results</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$method </td>
                                <td><p>Download/display method</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$type </td>
                                <td><p>Type of search</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$delimiter </td>
                                <td><p>Any delimiter with which to separate results</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_result_xml" name="method__api_result_xml" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_result_xml()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_result_xml(string <span class="argument">$search_results</span>, string <span class="argument">$method</span>) : void</pre>
                <p><em>Helper public function to display search results
Shows XML-formatted results</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$search_results </td>
                                <td><p>The array of search results</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$method </td>
                                <td><p>Download/display method</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Sean Ephraim</p>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_result_json" name="method__api_result_json" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_result_json()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_result_json(string <span class="argument">$search_results</span>, string <span class="argument">$method</span>) : void</pre>
                <p><em>Helper public function to display search results
Shows JSON-formatted results</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$search_results </td>
                                <td><p>The array of search results</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$method </td>
                                <td><p>Download/display method</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_result_vcf" name="method__api_result_vcf" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_result_vcf()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_result_vcf(string <span class="argument">$search_results</span>, string <span class="argument">$method</span>) : void</pre>
                <p><em>Return variant list in VCF format. Will be used in Galaxy</em></p>
                <p>NOTE: This is only valid for "type=variantlist".</p>

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$search_results </td>
                                <td><p>The array of search results</p></td>
                            </tr>
                                                    <tr>
                                <td>string</td>
                                <td>$method </td>
                                <td><p>Download/display method</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                                                            <p>Sean Ephraim</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                    <div class="row-fluid">
        <div class="span8 content class">
            <a id="method__api_iso_date" name="method__api_iso_date" class="anchor"></a>
            <article class="method">
                <h3 class="public ">_api_iso_date()</h3>
                <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
                <pre class="signature" style="margin-right: 54px;">_api_iso_date(string <span class="argument">$time</span>) : void</pre>
                <p><em>Get the ISO8601-formatted date</em></p>
                

                                    <h4>Parameters</h4>
                    <table class="table table-condensed table-hover">
                                                    <tr>
                                <td>string</td>
                                <td>$time </td>
                                <td><p>If specified, this timestamp is ISO8601-formatted.
   If not, current time is returned</p></td>
                            </tr>
                                            </table>
                
                
                            </article>
        </div>
        <aside class="span4 detailsbar">
            <h1><i class="icon-arrow-down"></i></h1>
                                                            <dl>
                                                                            </dl>
            <h2>Tags</h2>
            <table class="table table-condensed">
                                    <tr>
                        <th>
                            author
                        </th>
                        <td>
                                                                                            <p>Nikhil Anand</p>
                                                    </td>
                    </tr>
                                    <tr>
                        <th>
                            todo
                        </th>
                        <td>
                                                    </td>
                    </tr>
                            </table>
        </aside>
    </div>

                                                                    </div>
    </section>

    <div id="source-view" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="source-view-label" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="source-view-label">api_model.php</h3>
        </div>
        <div class="modal-body">
            <pre data-src="../files/models/api_model.php.txt" class="language-php line-numbers"></pre>
        </div>
    </div>

    <footer class="row-fluid">
        <section class="span10 offset2">
            <section class="row-fluid">
                <section class="span10 offset1">
                    <section class="row-fluid footer-sections">
                        <section class="span4">
                                                        <h1><i class="icon-code"></i></h1>
                            <div>
                                <ul>
                                                                    </ul>
                            </div>
                        </section>
                        <section class="span4">
                                                        <h1><i class="icon-bar-chart"></i></h1>
                            <div>
                                <ul>
                                    <li><a href="../graphs/class.html">Class Hierarchy Diagram</a></li>
                                </ul>
                            </div>
                        </section>
                        <section class="span4">
                                                        <h1><i class="icon-pushpin"></i></h1>
                            <div>
                                <ul>
                                    <li><a href="../reports/errors.html">Errors</a></li>
                                    <li><a href="../reports/markers.html">Markers</a></li>
                                </ul>
                            </div>
                        </section>
                    </section>
                </section>
            </section>
            <section class="row-fluid">
                <section class="span10 offset1">
                    <hr />
                    Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
                    on October 17th, 2014 at 17:00.
                </section>
            </section>
        </section>
    </footer>
</div>

</body>
</html>
